WindowClose SUB Action Closes a specified window, closing all buttons and edit fields associated with that window. Syntax WindowClose handle% Remarks The argument handle% is an integer that indicates the number of the window being closed. This can be any number between 0 and the value declared in the constant MAXWINDOW, inclusive. When you close the current window, the top window becomes the current window. Any button and edit fields associated with the closing window are also closed. If handle% is 0, all windows are closed. See Also. WindowOpen Example See the DemoWindow procedure in the code example UIDEMO.BAS for a specific usage that closes all open windows.